A Quick Guide to Procedural Levels with Unity: Create procedural levels in less than 60 minutes by Patrick Felicia

A Quick Guide to Procedural Levels with Unity: Create procedural levels in less than 60 minutes by Patrick Felicia

Author:Patrick Felicia [Felicia, Patrick]
Language: eng
Format: azw3
Published: 2017-08-21T04:00:00+00:00


Now that the XML format is clearer, let’s see how we can read an XML file to create a simple scene.

In the next section we will do this as follows:

Load an XML file.

Open this document.

Navigate through each level node or element.

For each of these nodes, create the corresponding game objects defined for this scene.

First let’s look at the XML file that we will be using:

<?xml version="1.0" encoding="UTF-8"?>

<game>

<level number ="1">

<object name = "wall1" color = "red" location = "10,0,10" rotation = "0,0,0" scale = "1,2,1">



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.